package campus.dao;

import campus.model.Manager;
import campus.model.ManagerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

public interface ManagerDao {

    //管理员登录

    int loginManager(@Param("managername")String managername, @Param("managerpwd")String managerpwd);

    long countByExample(ManagerExample example);

    int deleteByExample(ManagerExample example);

    int deleteByPrimaryKey(Integer managerid);

    int insert(Manager record);

    int insertSelective(Manager record);


    List<Manager> selectByExample(ManagerExample example);


    Manager selectByPrimaryKey(Integer managerid);


    int updateByExampleSelective(@Param("record") Manager record, @Param("example") ManagerExample example);


    int updateByExample(@Param("record") Manager record, @Param("example") ManagerExample example);


    int updateByPrimaryKeySelective(Manager record);


    int updateByPrimaryKey(Manager record);
}